package models;

import java.util.ArrayList;
import java.util.List;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.ManyToMany;
import javax.persistence.ManyToOne;
import javax.persistence.Table;

import play.data.validation.Email;
import play.db.jpa.Model;

@Entity
@Table(name="proposal")
public class Proposal extends Model{
	
	@Column(name="description")
	public String description;
	
	@Column(name="price")
	public long price;
		
	@ManyToOne
	public User user;
	
	@ManyToOne
	public Dream dream;
	
	@ManyToMany(mappedBy="proposals")
	List<Keyword> keywords = new ArrayList<Keyword>();

}
